<template>
  <div class="dashboard-editor-container">
    <el-row>
      <el-col :xs="{span: 24}" :sm="{span: 24}" :md="{span: 24}" :lg="{span: 24}" :xl="{span: 24}" style="margin-bottom:30px;">
        <usage-info :module="module" />
      </el-col>
    </el-row>
    <el-row>
      <el-col :xs="{span: 24}" :sm="{span: 24}" :md="{span: 24}" :lg="{span: 24}" :xl="{span: 24}" style="margin-bottom:30px;">
        <port-info :module="module" />
      </el-col>
    </el-row>

  </div>
</template>

<script>
import PortInfo from './components/PortInfo.vue'
import UsageInfo from './components/UsageInfo.vue'
import resize from '@/mixins/resize'

export default {
  components: {
    UsageInfo,
    PortInfo
  },
  filters: {
  },
  mixins: [resize],
  data() {
    return {
      module: 0
    }
  },
  created() {
    this.module = Number(this.$route.params.module)
  },
  methods: {
  }
}
</script>

<style lang="scss" scoped>
.dashboard-editor-container {
  padding: 32px;
  background-color: rgb(240, 242, 245);
  position: relative;

  .chart-wrapper {
    background: #fff;
    padding: 16px 16px 0;
    margin-bottom: 32px;
  }
}

@media (max-width:1024px) {
  .chart-wrapper {
    padding: 8px;
  }
}
</style>
